Replace "==" with "=" in shell script test
authorGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 30 Jan 2015 14:15:32 +0000 (15:15 +0100)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 30 Jan 2015 14:27:36 +0000 (15:27 +0100)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
cfg.mk
tests/test-help.sh

diff --git a/cfg.mk b/cfg.mk
index 9742bfd712a0d4d25fe9b224cd461ea5b1ec20ee..ba235868745feedae4aadf9e5f586d56ad320bfb 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -22,7 +22,6 @@ local-checks-to-skip = \
     sc_bindtextdomain   \
     sc_prohibit_empty_lines_at_EOF \
     sc_prohibit_path_max_allocation \
-    sc_prohibit_test_double_equal \
     sc_trailing_blank \
 
 #SHELL=bash -x
index 4c1ffaddbedb3cba3fd3fba176874c2c1b0ad10c..37d9fa1df95334f3af6e679eaf224d3545df1e89 100755 (executable)
@@ -31,7 +31,7 @@ test_recursive() {
     echo "$cmd" 1>&2
     $cmd --help 1>out 2>err
     # --help message goes to standard output
-    if [ "$root" == "1" ] ; then
+    if [ "$root" = "1" ] ; then
         assert_file_has_content out "[Uu]sage"
         assert_file_has_content out "$cmd"
     fi